package com.leyou.auth.client;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * @author mySun
 * @create 2021-07-28 19:11
 */
@FeignClient("auth-service")
public interface AuthClient {
    /**
     * 给其他服务获取jwt秘钥
     * @param clientId 客户端id
     * @param secret 密码
     * @return
     */
    @GetMapping("/client/key")
    String getKey(@RequestParam("clientId") String clientId, @RequestParam("secret") String secret);

}
